package com.probox.common.entity.vo.WeCom;

import cn.hutool.core.util.ObjectUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.probox.common.core.text.Convert;
import com.probox.common.core.utils.money.MoneyUtils;
import com.probox.common.entity.utils.DictUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

@Data
public class WeComCustomerArchivesVo implements Serializable {
    private Long storeId;
    private String serviceName;
    private String storeName;
    private Long settlementPrice;

    private String serviceType;
    private String serviceTypeDetail;

    public String getServiceTypeStr() {

        if (ObjectUtil.isEmpty(serviceType)) {
            return "";
        }
        HashMap typeMap = DictUtils.getDictCacheMap("proBoxService_itemType");
        return Convert.toStr(typeMap.get(serviceType));

    }

    public String getSettlementPriceStr() {
        if (ObjectUtil.isEmpty(settlementPrice)) {
            return "";
        }
        return MoneyUtils.changeF2Y(settlementPrice);
    }
    private String times;
    private String phone;

    private String time;

    private String startTime;

    private String endTime;

    private Long subscribeId;

    private String customerName;

    /**
     * 预约日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date subscribeDate;

    private Long customerId;

    private String levelName;
    private Integer  customerGrade;
    private String  customerIcon;
    private String  levelColor;

    /**
     * 技师名称
     */
    private String cosmetician;

    private String avatar;

    /**
     * 客户诉求
     */
    private String customerRequirement;

    private String serviceDetail;

    /**
     * 皮肤问题/护理情况
     */
    private String skinProblems;

    /**
     * 项目铺垫
     */
    private String projectBedding;

    /**
     * 客户服务图片
     */
    private String customerImages;

    /**
     * 服务项目集合
     */
    private List<WeComAppointmentItemVo> listVo;

    private String sourcePlatform;

    private Long settlementCountPrice;

    public String getSettlementCountPriceStr(){
        return MoneyUtils.changeF2B(settlementCountPrice);
    }

    public String getSourcePlatformStr(){
        HashMap dictCacheMap = DictUtils.getDictCacheMap(sourcePlatform);
        return Convert.toStr(dictCacheMap.get(sourcePlatform));
    }

    /**
     * 操作师总结
     */
    private String consultantSummary;
    /**
     * 配台总结
     */
    private String matchingSummary;
    /**
     * 洁面总结
     */
    private String cleansingSummary;

}
